package com.cloud.dao.impl;

import com.cloud.dao.CourseDao;
import com.cloud.entity.Course;
import com.cloud.utils.DataProcessUtils;

import java.util.List;
public class CourseDaoImpl implements CourseDao {
    @Override
    public List<Course> findCourses() {
        String sql = "select * from course";
        return DataProcessUtils.getForList(Course.class,sql);
    }
}
